// package com.hrc.springbootdemo.datasouce;
//
// import org.springframework.context.annotation.Bean;
// import org.springframework.context.annotation.Configuration;
// import org.springframework.jdbc.datasource.DataSourceTransactionManager;
// import org.springframework.transaction.PlatformTransactionManager;
//
// import javax.sql.DataSource;
//
// @Configuration
// public class TransactionManagerConfig {
//
//     @Bean(name = "primaryTransactionManager")
//     public PlatformTransactionManager primaryTransactionManager(DataSource primaryDataSource) {
//         return new DataSourceTransactionManager(primaryDataSource);
//     }
//
//     @Bean(name = "secondaryTransactionManager")
//     public PlatformTransactionManager secondaryTransactionManager(DataSource secondaryDataSource) {
//         return new DataSourceTransactionManager(secondaryDataSource);
//     }
// }